package com.jar.exercise.枚举;

public enum StrategyEnum implements StrategyInterface {
	ADD("+") {
		@Override
		public int exec(int a, int b) {
			return 0;
		}
	},
	SUB("-") {
		@Override
		public int exec(int a, int b) {
			return a - b;
		}
	},
	MUTI("*") {
		@Override
		public int exec(int a, int b) {
			return a * b;
		}
	};

	StrategyEnum(String value) {
		this.value = value;
	}

	private String value;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

//    public abstract int exec(int a, int b);
}
